package com.tring.ysyn.service;

import com.tring.ysyn.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tring.ysyn.model.dto.user.UserDTO;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author tring
 * @since 2022-10-31
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 根据账号查询用户
     * @param account
     * @return
     */
    public SysUser findUserByAccount(String account);
    /**
     * 修改密码
     * @param dto
     */
    void updatePwd(UserDTO dto);

    /**
     * 禁用/冻结用户
     * @param id
     */
    void disableOrAble(String id);
}
